package media
{
	[Bindable]
	[RemoteClass(alias="com.serverplic.media.Event")]
	public class MediaEvent
	{
		private var mID:int;
		private var mName:String;
		private var mTitle:String;
		private var mPassword:String;
		private var mDescription:String;
		private var mMapPath:String;
		private var mStartDate:Date;
		private var mEndDate:Date;
		
		public function get id():int
		{
			return mID;
		}
		public function set id(_id:int):void
		{
			mID = _id;
		}
		
		public function get name():String
		{
			return mName;
		}
		public function set name(_name:String):void
		{
			mName = _name;
		}
		
		public function get title():String
		{
			return mTitle;
		}
		public function set title(_title:String):void
		{
			mTitle = _title;
		}
		
		public function get password():String
		{
			return mPassword;
		}
		public function set password(_password:String):void
		{
			mPassword = _password;
		}
		
		public function get description():String
		{
			return mDescription;
		}
		public function set description(_description:String):void
		{
			mDescription = _description;
		}
		
		public function get mapPath():String
		{
			return mMapPath;
		}
		public function set mapPath(_mapPath:String):void
		{
			mMapPath = _mapPath;
		}
		
		public function get startDate():Date
		{
			return mStartDate;
		}
		public function set startDate(_startDate:Date):void
		{
			mStartDate = _startDate;
		}
		
		public function get endDate():Date
		{
			return mEndDate;
		}
		public function set endDate(_endDate:Date):void
		{
			mEndDate = _endDate;
		}
		
		public function toString():String
		{
			var txt:String  = "Event\n";
			txt += "ID : " + id + "\n";
			txt += "Name : " + name + "\n";
			txt += "Title : " + title + "\n";
			txt += "Password : " + password + "\n";
			txt += "Description : " + description + "\n";
			txt += "MapPath : " + mapPath + "\n";
			txt += "Start Date : " + startDate + "\n";
			txt += "End Date : " + endDate + "\n";
			return txt;
		}
	}
}